﻿@model List<SuperiorModel.AreaModel>
@{
    Layout = null;
    var HasAreaIdList = ViewBag.HasAreaIdList;
}
<link href="~/layui/css/layui.css" rel="stylesheet" />

<link href="~/Content/extend.css" rel="stylesheet" />

<script src="~/scripts/jquery-1.10.2.js"></script>
<script src="~/scripts/Common/Base.js"></script>
<script src="~/scripts/Common/RequestManager.js"></script>
<script src="~/scripts/Common/ToolManager.js"></script>
<script src="~/scripts/layer/layer.js"></script>
<script src="~/layui/layui.js"></script>
<div class="shopmain">
    <div class="shopbody">
        <div class="layui-form">

            <div class="layui-form-item layui-form-text" id="dataList">
                <table class="layui-table" id="AppList" lay-filter="test">
                    <thead>
                        <tr>
                            <th><input type="checkbox" lay-filter="check_all" name="check_all" title="" lay-skin="primary"></th>
                            <th>省</th>
                        </tr>
                    </thead>
                    <tbody>
                        @foreach (var item in Model)
                        {
                            <tr>
                                <td>
                                    @if (ViewBagManager.IsCheck(item.Area_Code.ToString(), HasAreaIdList))
                                    {
                                        <input type="checkbox" value="@item.Area_Code" name="check_area" title="" Area="@item.Area_Name" lay-filter="check_area" lay-skin="primary" checked>
                                    }
                                    else
                                    {
                                        <input type="checkbox" value="@item.Area_Code" name="check_area" title="" Area="@item.Area_Name" lay-filter="check_area" lay-skin="primary">
                                    }

                                </td>
                                <td>@item.Area_Name</td>
                            </tr>
                        }
                    </tbody>
                </table>
               
            </div>

        </div>
    </div>
</div>
<script src="~/scripts/Marketing/CurrentAreas.js"></script>
<script>
    CurrentAreasClass.Instance.Init();

</script>

